package com.easy.module.system.model;

import com.easy.framework.common.validate.Add;
import com.easy.framework.common.validate.Update;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.*;
import java.io.Serializable;

@Setter
@Getter
public class CaptchaResetPwdModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "用户名不能为空")
//    @Pattern(regexp = "^[a-zA-Z0-9_+&*-]+(?:\\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$",message= "非法访问")
    private String username;

    @NotBlank(message = "非法访问")
//    @Size(message = "非法访问", min = 4, max = 6)
    private String captcha;

    @NotBlank(message = "非法访问")
    private String captchaKey;

    @NotBlank(message = "密码长度最少6位最长32位")
    @Size(message = "密码长度最少6位最长32位", min = 5, max = 32)
    private String newPassword;
}
